@echo off
echo 正在启动Ctrl100Panel应用...


:: 设置环境变量
set PORT=3000
set WS_PORT=9000

:: 启动后端服务
start cmd /k "echo 启动后端服务... && set PORT=%PORT% && set WS_PORT=%WS_PORT% && npm start"

:: 启动前端服务
start cmd /k "echo 启动前端服务... && cd frontend && npm run dev"

echo Ctrl100Panel应用已启动!
echo 后端HTTP服务运行在: http://localhost:%PORT%
echo 后端WebSocket服务运行在: ws://localhost:%WS_PORT%
echo 前端服务运行在: http://localhost:5173